﻿package com.firewolf.mybatis.relation.beans;

import org.apache.ibatis.type.Alias;

/**
 * 
 * @Description: 一个班级，这个班级有一个老师
 * @Author: 刘兴
 * @Date : 2016年8月18日
 * @package : com.firewolf.mybatis.relation.beans
 * @Java_Version : 1.7
 * @Version : 2016年8月18日上午11:22:35
 */
@Alias("Classes")
public class Classes {
	private int id;
	private String name;
	private Teacher teacher;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	@Override
	public String toString() {
		return "Classes [id=" + id + ", name=" + name + ", teacher=" + teacher + "]";
	}
	
}
